﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace MvcRedovalnica.Models2
{
    public class Odsotnost
    {
        public List<SelectListItem> razrediOpcije { get; set; }
        public List<SelectListItem> dijaki { get; set; }
        public List<SelectListItem> ureOpcije { get; set; }

        [Required(ErrorMessage = "Izberite razred!")]
        [Display(Name = "Poucevani razred")]
        public string selectedRazred { get; set; }

        [Required(ErrorMessage = "Vpisite datum!")]
        [Display(Name = "Datum poucevanja")]
        [DataType(DataType.Date)]
        public DateTime date { get; set; }

        [Required(ErrorMessage = "Izberite solsko uro!")]
        [Display(Name = "Ura poucevanja")]
        public int selectedUra { get; set; }
    }
}